/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package topico1;

import javax.swing.JOptionPane;

/**
 *
 * @author leovirgilio
 */
public class MCx4 {

    public static void main(String args[]) {
        String r;
        double pi = 3.14159;

        r = JOptionPane.showInputDialog(null, "Digite um raio");

        JOptionPane.showMessageDialog(null, "O Diâmetro é: " + (2 * Integer.parseInt(r)), "Diâmetro", JOptionPane.INFORMATION_MESSAGE);

        JOptionPane.showMessageDialog(null, "A Circunferência é: " + (2 *  pi * Integer.parseInt(r)), "Circunferência", JOptionPane.INFORMATION_MESSAGE);


        JOptionPane.showMessageDialog(null, "A Área é: " + (pi * Math.pow(Double.parseDouble(r),2)), "Área", JOptionPane.INFORMATION_MESSAGE);


    }
}
